<?php
abstract class Controller{
	protected $_form = NULL;
	protected $_defaultAction = NULL;

	public function setForm($form) {
		$this->_form = $form;
	}

	public function getForm() {
		return $this->_form;
	}

	function preDispatch(){}

	function postDispatch(){}

	public function getInstanceForm() {
		require_once 'Form.php';
		$this->_form = new Form();
		return $this->_form;
	}

	function setDefaultAction($defaultAction) {
		$this->_defaultAction = $defaultAction;
	}

	function getDefaultAction() {
		return $this->_defaultAction;
	}
}
